package com.xuerhua.yxt.controller.sys.kccs;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xuerhua.yxt.controller.BaseController;
import com.xuerhua.yxt.reqVo.KccsCourseQueryVO;
import com.xuerhua.yxt.service.IKccsCourseInfoService;

@RequestMapping("sys/kccsCourse/total")
@Controller
public class SysKccsTotalController extends BaseController {
	
	@Autowired
	private IKccsCourseInfoService kccsCourseInfoService;
	
	@RequestMapping(value={"","/"})
	public String Index() {
		return "sys/kccsCourse/total";
	}
	
	@RequestMapping("pageQuery")
	@ResponseBody Object pageQuery(KccsCourseQueryVO vo){
		try {
			vo.setTermId(getCurrentTerm().getId());
			vo.setFinishYear(getCurrentTerm().getFinishYear());
			return kccsCourseInfoService.selectKccsStudentTotal(vo);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
	
}
